﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.Serialization;
using KPIS.GERP.Models.HRM;

namespace KPIS.GERP.Models.SYS
{
    [DataContract, Table("SysApprovalTaskDtlEmployee")]
    public class ApprovalTaskDtlEmployee
    {
        [DataMember, Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public virtual int ApprovalTaskDtlEmpId { get; set; }

        [DataMember, ForeignKey("ApprovalTaskDtl")]
        public int? ApprovalTaskDtlId { get; set; }

        [DataMember, ForeignKey("Employee")]
        public int? EmpId { get; set; }

        [DataMember]
        public virtual Employee Employee { get; set; }

        [DataMember]
        public virtual ApprovalTaskDtl ApprovalTaskDtl { get; set; }
    }
}